package com.gwnet.shop.domain;

import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gwnet.common.mybatis.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 店铺营业时间段,一个店铺可以有多个营业时间段对象 sys_tenant_openhours
 * 
 * @author zhangwanpeng
 * @date 2024-08-05
 */
public class TenantOpenhours
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 店铺id */
    private Long tenantId;

    /** 开张时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    private Time openTime;

    /** 闭店时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    private Time closeTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Time getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Time openTime) {
        this.openTime = openTime;
    }

    public Time getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Time closeTime) {
        this.closeTime = closeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("openTime", getOpenTime())
            .append("closeTime", getCloseTime())
            .toString();
    }
}
